#include <iostream>
#include <cstring>
// a candybar  structure
struct CandyBar {
	std::string brand;
    double weight;
    int calories;
};
    
int main()
{
    using namespace std;  //introduces namespace std
    CandyBar *snack = new CandyBar[3];
	snack[0].brand = "sn";
    cout << "Brand name: " << snack[0].brand << endl;
    cout << "Weight: " << snack[0].weight << endl;
    cout << "Calories: " << snack[0].calories << endl;
    
    return 0;
}
